<!DESCRIPTION>The user no longer needs to click precisely on the checkbox to check and uncheck it. Clicking the text after a checkbox can do this just like windows programs<!/DESCRIPTION>
<!CATEGORY>Forms<!/CATEGORY>
<!SCRIPT>
<!-- START OF SCRIPT -->
<!-- HOW TO INSTALL CHECKBOX TEXT:
1. Copy code into the HEAD section of document
2. Put last coding into the BODY section of document -->
<!-- STEP ONE: Add code into HEAD section of document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: trs2005@yahoo.com -->
<!-- Modified by: Ronnie T. Moore, Editor -->
<!-- Modified by: Avi Kehat (avik@iname.com) -->
<!-- Begin
function changeBox(cbox) {
box = eval(cbox);
box.checked = !box.checked;
}
// End -->
</script>
</HEAD>
<!-- STEP TWO: Add code into BODY section of document -->
<BODY>
<form name=demoform>
<input type=checkbox name=agreebox>
<a href="" onClick="changeBox('document.demoform.agreebox');return false">Clicking this text also checks the box to the left.</a>
</form>
<!-- END OF SCRIPT -->
<!/SCRIPT>
<!PREVIEW>
<!-- START OF SCRIPT -->
<!-- HOW TO INSTALL CHECKBOX TEXT:
1. Copy code into the HEAD section of document
2. Put last coding into the BODY section of document -->
<!-- STEP ONE: Add code into HEAD section of document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: trs2005@yahoo.com -->
<!-- Modified by: Ronnie T. Moore, Editor -->
<!-- Modified by: Avi Kehat (avik@iname.com) -->
<!-- Begin
function changeBox(cbox) {
box = eval(cbox);
box.checked = !box.checked;
}
// End -->
</script>
</HEAD>
<!-- STEP TWO: Add code into BODY section of document -->
<BODY>
<form name=demoform>
<input type=checkbox name=agreebox>
<a href="" onClick="changeBox('document.demoform.agreebox');return false">Clicking this text also checks the box to the left.</a>